﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.Materials.RecipientsToAppls
{
    public interface IRecipientsToApplsRepository
    {
        /// <summary>
        /// 物资领用——查询分页显示
        /// </summary>
        /// <param name="Recipient"></param>
        /// <param name="ReceiveTimek"></param>
        /// <param name="ApprovalStatusk"></param>
        /// <param name="Approverk"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageResponse<RecipientsToApplsDto>> GetRecipientsToApplsPageShow(string Recipient, DateTime? ReceiveTimek, int ApprovalStatusk, string Approverk, int pageindex = 1, int pagesize = 3);
        /// <summary>
        /// 物资领用——逻辑删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteRecipientsToAppls(int id);
        /// <summary>
        /// 物资领用——批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteBatchRecipientsToAppls(string ids);
        /// <summary>
        /// 物资领用——编辑
        /// </summary>
        /// <param name="purchaseRequestDto"></param>
        /// <returns></returns>
        Task<int> PutUpdateRecipientsToAppls(RecipientsToApplsDto recipientsToApplsDto);
        /// <summary>
        /// 物资领用——添加
        /// </summary>
        /// <param name="purchaseRequestDto"></param>
        /// <returns></returns>
        Task<int> PostAddRecipientsToAppls(RecipientsToApplsDto recipientsToApplsDto);
    }
}
